package com.yanqu.road.entity.log.feast;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

@FieldTypeAnnotation(tableName = "t_l_ck_feast_energy", autoSave = true, desc = "山河乐宴-宴客消耗", dataUpload = true, uploadCk = true, eventName = "shfete_use")
public class LogFeastEnergy extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(desc = "类型，1使用获得修为，2道具恢复，3自然恢复", dataAttribute = "shfete_type")
    private int type;
    @FieldTypeAnnotation(desc = "变化数量", dataAttribute = "shfete_num")
    private int changeCount;
    @FieldTypeAnnotation(desc = "变化后最新数量", dataAttribute = "shfete_nownum")
    private int newCount;

    public LogFeastEnergy(long userId, int activityId, int type, int changeCount, int newCount) {
        this.userId = userId;
        this.activityId = activityId;
        this.type = type;
        this.changeCount = changeCount;
        this.newCount = newCount;
    }

    public long getUserId() {
        return userId;
    }
}
